﻿///***************************************************************
/// 시  스  템 : Updms.Cfg.Exe
/// 단위시스템 : CFG
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Cfg1011m_NT
/// 파  일  명 : Cfg1011m_NT.cs
/// 설      명 : 설정관리
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-08-06 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Cfg.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Cfg1011m_NT : Base.AppFramework.RuleBase
	{
		public Cfg1011m_NT()
		{
		}

		#region GetSearchCount
		/// <summary>
		/// 검색결과 건수조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT _dac = new Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}

		#endregion

		#region SelectProcess
		/// <summary>
		/// 설정조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT _dac = new Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}

		#endregion

		#region GetSettingValueByCd
		/// <summary>
		/// 코드별 설정값 조회
		/// </summary>
		/// <param name="ls_cd"></param>
		/// <returns></returns>
		[AutoComplete]
		public string GetSettingValueByCd(string ls_cd)
		{
			_exeTimeLog.Prepare();

			using (Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT _dac = new Dac.Cfg_Dac_UPDMS_CFG_SETTING_MGT())
			{
				return _dac.GetSettingValueByCd(ls_cd);
			}
		}

		#endregion

	}
}
